<div id="form"></div>
<script>
var frm=$("#form").ajajform({
	header: "{{!title}}",
	submit: {
		url: '{{action}}',
		value: "{{!!delete}}",
		ajaj: true,
		params: {mode: "delete_save",page_id: '{{fields.page_id}}',ajaj: 1}
	}
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "template_id",
	label: "{{!field_template}}",
	width: 350,
	value: "{{cpage.template_name}}"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "alias",
	label: "{{!field_alias}}",
	width: 350,
	value: "{{JS:cpage.alias}}"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "name",
	label: "{{!field_name}}",
	width: 350,
	value: "{{JS:cpage.name}}"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "prerun",
	label: "{{!field_prerun}}",
	width: 350,
	value: "{{JS:cpage.prerun}}"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "keywords",
	label: "{{!field_keywords}}",
	width: 350,
	value: "{{JS:cpage.keywords}}"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "title",
	label: "{{!field_title}}",
	width: 350,
	value: "{{JS:cpage.title}}"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "subject",
	label: "{{!field_subject}}",
	width: 350,
	value: "{{JS:cpage.subject}}"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "description",
	label: "{{!field_description}}",
	width: 350,
	value: "{{JS:cpage.description}}"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "show_in_nav",
	label: "field_show_in_nav",
	width: 350,
	value: "{{cpage.show_in_nav}}"=="1"?"{{!!cb_yes}}":"{{!!cb_no}}"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "hide_anon",
	label: "{{!field_hide_anon}}",
	width: 350,
	value: "{cpage.hide_anon}}"=="1"?"{{!!cb_yes}}":"{{!!cb_no}}"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "hide_reg",
	label: "{{!field_hide_reg}}",
	width: 350,
	value: "{cpage.hide_reg}}"=="1"?"{{!!cb_yes}}":"{{!!cb_no}}"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "role_name",
	label: "{{!field_role_name}}",
	width: 360,
	value: "{{cpage.role_name}}"
});

</script>
